<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui" 
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Atualizar Condição de Denúncia</title>
    </h:head>
    <h:body>
        <h:form>
            
            <p:message for="txtCondicao" display="icon" />
            <p:panel id="panelCondicao">
               
                    <p:messages id="msgsCondicao" autoUpdate="true"/> 
                    <h:panelGrid columns="2">
                        <h:outputLabel for="txtCondicao" value="Condição: *" />
                        <p:inputText id="txtCondicao" label="Condicao" value="#{condicaoBean.condicao.nome}" required="true" requiredMessage="Entre com um nome para a condição">
                            <f:validateLength minimum="2" />
                        </p:inputText>
                        <p:watermark for="txtCondicao" value="Nome da condição" />
                        <!-- <p:message for="txtCondicao" display="both"  /> -->
                    </h:panelGrid>
                    <p:commandButton id="adicionarCondicaoButton" value="Atualizar Condição da Denúncia" action="#{condicaoBean.atualizarCondicao()}"  />
                    <p:commandButton value="Limpar Campos" type="reset" />

            </p:panel>
        </h:form>
    </h:body>
</html>